<template>
  <div>
    <div>父组件{{ num }}</div>
    <!-- v-model :语法糖写法可以实现组件间数距双向绑定,
v-model等同于 :value="num" @input="val=>num=val"
 -->
    <Son v-model="num" />
  </div>
</template>

<script>
import Son from './Son.vue'
export default {
  components: {
    Son
  },
  data() {
    return {
      num: 100
    }
  },
  methods: {

  }
}
</script>

<style>

</style>
